<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        //1.更新变量
        var myname = '卢本伟';
        console.log(myname);
        myname = 'PPD';
        console.log(myname);
        //2.不声明 不赋值 直接使用会报错
    </script>
</head>
<body>
    
</body>
</html>